const mongoose = require("mongoose");

mongoose.connect("mongodb://localhost:27017");

const Messages = mongoose.model("Messages", {
  username: {
    type: String,
    required: true,
  },
  content: {
    type: String,
    required: true,
  },
  time: {
    type: String,
    required: true,
  },
});

module.exports = Messages;
